import request from "@/utils/request";

// 查询定制窗幔列表
export function listCurtain(query) {
  return request({
    url: "/md/customWindowCurtain/list",
    method: "get",
    params: query,
  });
}

// 查询定制窗幔详细
export function getCurtain(customWindowCurtainId) {
  return request({
    url: "/md/customWindowCurtain/" + customWindowCurtainId,
    method: "get",
  });
}

// 新增定制窗幔
export function addCurtain(data) {
  return request({
    url: "/md/customWindowCurtain",
    method: "post",
    data: data,
  });
}

// 修改定制窗幔
export function updateCurtain(data) {
  return request({
    url: "/md/customWindowCurtain",
    method: "put",
    data: data,
  });
}

// 删除定制窗幔
export function delCurtain(customWindowCurtainId) {
  return request({
    url: "/md/customWindowCurtain/" + customWindowCurtainId,
    method: "delete",
  });
}
